import Vue from 'vue';
import App from './App.vue';
import store from './store';
import router from './router';
import ElementUI from 'element-ui';
import plugins from "@/utils/plugins";
import thirdParty from '@/utils/thirdparty';


//加载样式
import 'element-ui/lib/theme-chalk/index.css';
import '@/assets/font/iconfont.css';
import '@/styles/index.scss';

//加载项目基本配置
import "@/utils/config";

Vue.config.productionTip = false;
//全局组件、方法、过滤器、指令
Vue.use(plugins);
//element UI组件引入
Vue.use(ElementUI);
//第三方组件引入
Vue.use(thirdParty);

new Vue({
	store,
	router,
	async beforeCreate() {
		await this.$store.dispatch('init');
		this.$mount('#app');
	},
	render: h => h(App),
})